const state = {
    data: [],
    pageTotal: 0,
    query: {
        show: false,
        checked: false,
        pageIndex: 1,
        pageSize: 10,
        id: null,
        name: null,
        tagName: null,
        status: null,
        createBy: null,
        excellentFlag: null
    },
    query_1: {
        // src: '',
        pageIndex: 1,
        pageSize: 10,
        importName: '',
        actorImportName: '',
        albumImportName: '',
        ids: ''
    },
    form: {},
    tableData_l: [],
    tableData_r: [],
    pageTotal: 0
}

const mutations = {
    SET_EDIT_RANKING_DATA: (state, data) => {
        state.data = data
    },
    SET_EDIT_RANKING_PAGETOTAL: (state, pageTotal) => {
        state.pageTotal = pageTotal
    },
    SET_EDIT_RANKING_1_PAGETOTAL: (state, pageTotal) => {
        state.pageTotal = pageTotal
    },
    SET_EDIT_RANKING_QUERY: (state, query) => {
        state.query = query
    },
    SET_EDIT_RANKING_QUERY_1: (state, query_1) => {
        state.query_1 = query_1
    },
    SET_EDIT_RANKING_FORM: (state, form) => {
        state.form = form
    },
    SET_EDIT_RANKING_TABLEDATA_R: (state, tableData_r) => {
        state.tableData_r = tableData_r
    },
    SET_EDIT_RANKING_TABLEDATA_L: (state, tableData_l) => {
        state.tableData_l = tableData_l
    },
}


// ajax异步请求要么放在组件发 要么 放在actions发
// 这里是放在组件发
const actions = {
    // setEditMenuData({ commit }, data) {

    // }
    // ...
}

export default {
    state,
    mutations,
    actions
}